<?
	header("Content-type: image/png");
	include_once("config.php");
	$sql="select * from image_path where product_id='".$_GET["id"]."'";
	$result=mysql_db_query($dbm, $sql);
	$record=mysql_fetch_array($result, MYSQL_ASSOC);
	echo $record["image_data"];
	mysql_free_result($result);
?>